package com.example.ssmxuankeback.service;

import com.example.ssmxuankeback.common.RestBean;
import com.example.ssmxuankeback.dto.EnrollmentDTO;
import com.example.ssmxuankeback.dto.EnrollmentPageQueryDTO;
import com.example.ssmxuankeback.vo.EnrollmentVO;
import com.example.ssmxuankeback.vo.PageVO;
import java.util.List;

public interface EnrollmentService {
    RestBean<EnrollmentVO> addEnrollment(EnrollmentDTO dto);
    RestBean<EnrollmentVO> cancelEnrollment(Long enrollId);
    RestBean<PageVO<EnrollmentVO>> listByPage(EnrollmentPageQueryDTO queryDTO);
    RestBean<List<EnrollmentVO>> getByStudentId(Long studentId);
    RestBean<List<EnrollmentVO>> getByCourseId(Long courseId);
}